import request from '@/utils/request'
import { praseStrEmpty } from "@/utils/admin";


// 关键字分页查询
export function pageFlowKeys(query) {
  return request({
    url: '/releFlow/pageFlowKeys',
    method: 'post',
    data: query
  })
}

//流程分页查询
export function pageFlow(query) {
  return request({
    url: '/releFlow/pageFlow',
    method: 'post',
    data: query
  })
}


//修改流程
export function updReleFlow(query) {
  return request({
    url: '/releFlow/updReleFlow',
    method: 'post',
    data: query
  })
}

//新增时参数初始化
export function getAddDefault(query) {
  return request({
    url: '/releFlow/getAddDefault',
    method: 'post',
    data: query
  })
}

//新增流程
export function addReleFlow(query) {
  return request({
    url: '/releFlow/addReleFlow',
    method: 'post',
    data: query
  })
}

//删除流程
export function removeReleFlow(id) {
  return request({
    url: '/releFlow/removeReleFlow?id='+id,
    method: 'get'
  })
}


//新增流程
export function updSort(data) {

  return request({
    url: '/releFlow/updReleFlowSort',
    method: 'post',
    data: data
  })
}
